<template>
  <view class="color-title">
    <view class="top">
      <image :src="image" />
      <slot name="grade" />
    </view>
    <view class="bottom">
      <slot name="content" />
    </view>
  </view>
</template>

<script>
export default {
  name: "xbd-color-title",
  props: {
    image: {
      type: String,
      default: "",
    },
    grade: {
      type: String,
      default: "",
    },
  },
  data() {
    return {};
  },
};
</script>

<style lang="scss" scoped>
.top {
  display: flex;
  align-items: center;
  font-size: 32rpx;
  font-weight: 600;
  margin-bottom: 40rpx;
  image {
    width: 42rpx;
    height: 42rpx;
    display: block;
    margin-right: 20rpx;
  }
}
</style>